package com.yuzhi.master.pump.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuzhi.common.core.mapper.BaseMapperPlus;
import com.yuzhi.master.pump.domain.DrainPump;
import com.yuzhi.master.pump.domain.vo.DrainPumpVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 污水设施统计Mapper接口
 *
 * @author auto code generator
 * @date 2024-04-12
 */
@Repository
public interface DrainPumpMapper extends BaseMapperPlus<DrainPumpMapper, DrainPump, DrainPumpVo> {

    IPage<DrainPump> selectPumpPage(
            IPage<DrainPump> page,
            @Param("draiPumpName") String draiPumpName,
            @Param("areaCode") String areaCode
    );

    Page<DrainPumpVo> selectAppVoPageList(@Param("page") Page<DrainPumpVo> page, @Param(Constants.WRAPPER) Wrapper<DrainPump> queryWrapper);

    /**
     * 获取泵站名称列表
     */
    List<DrainPumpVo> getListPumpName();
}
